<!DOCTYPE html>
<html ng-app="pc.business" ng-controller="bussinessController">
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../分页-angular/js/jquery-1.11.2.min.js" ></script>
		<script type="text/javascript" src="../js/angular.js" ></script>
	</head>
	<body>
		<button ng-click="reduce()" class="plus">-</button>
		<input type="text" id="num" name="" ng-model="showNum">
		<button ng-click="add()" class="plus">+</button>
		<script>
			var business = angular.module('pc.business', []);
				business.factory('bussinessFactory',['$http',function($http){
					$scope.businessFactoryList=[];
		 			$scope.showNum=0;/*商品数量初始化*/
				}])
				business.controller('bussinessController',['$scope','$http',function($scope,$http,bussinessFactory){
					$scope.showNum=1;
					$scope.reduce=function(){
						$scope.showNum--;
					}
					$scope.add=function(){
						$scope.showNum++;
					}
					
				}])
			
		</script>
	</body>
</html>
